/*
 * @brief: 
 * @Author: TzzzT
 * @Date: 2022-05-08 21:37:05
 * @LastEditTime: 2022-11-29 04:39:50
 * @LastEditors: TzzzT
 */
#pragma once 


//spi设置
#define PIN_NUM_MISO 19
#define PIN_NUM_MOSI 8
#define PIN_NUM_CLK  1
#define PIN_NUM_CS   0
#define PIN_NUM_RST  0

#define PROPS_CLASS 0xa1
#define BDA_GUN_POI_CLASS 0xb1
#define BDA_GUN_POI_SCR_CLASS 0xb2
#define BDA_ARMOR_CLASS 0xb3

#define DATA_CLASS_BLOCK_NUM 7
#define PROPS_BLOCK_NUM 8
#define BDA1_BLOCK_NUM 9
#define BDA2_BLOCK_NUM 10



enum {
    NFC_INCREASE_DAMAGE = 0,
    NFC_INCREASE_HP,
    NFC_REBORN,
    NFC_INCREASE_BULLET_NUM
};


void test_add_increase_damage_tag(void);
void test_add_increase_hp_tag(void);
void test_add_reborn_tag(void);
void test_add_increase_bulletnum_tag(void);


esp_err_t nfc_init(void);

void open_rc522(void);
void detect_tag(void);
void close_rc522(void);
